<!--轮播!-->
<template>
    <el-carousel style="width: 1200px;margin: auto;margin-top: 50px" indicator-position="outside" >
      <el-carousel-item  style="width: 100%" v-for="item in imgs" :key="item.src">
        <img :src="item" style="width:100%;height:100%" >
      </el-carousel-item>
    </el-carousel>
</template>

<script>
export default {
  name: "slideshow",
  data() {
    return {
      count: 24,//起始页数值为0
      loading: false,
      totalPages: "",//取后端返回内容的总页数
      list: [], //后端返回的数组
      imgs: [//轮播图片
        require("../static/images/2.png"),
        require("../static/images/2.png"),
        require("../static/images/2.png"),
      ],
      activeName: 'fantasy',//默认页面
    }
  },
}
</script>

<style scoped>
  .el{
    width: 1200px;
  }
</style>
